export default [
  {
    path: '/ysqjc',
    name: 'Ysqjc',
    redirect: '/ysqjc/rainstorm',
    meta: {
      title: '河北深雨水情监测预报业务平台',
      globalAttachment: () => import('@/views/business/ysqjc/attachment'),
      search: () => import('@/components/online-count')
    },
    children: [
      // {
      //   path: '/ysqjc/home',
      //   name: 'YsqjcHome',
      //   component: () => import('@/views/business/ysqjc/home'),
      //   meta: {
      //     title: '首页'
      //   }
      // },
      {
        path: '/ysqjc/rainstorm',
        name: 'YsqjcRainstorm',
        redirect: '/ysqjc/rainstorm/achievements',
        component: () => import('@/views/essential/shell.vue'),
        meta: {
          title: '暴雨图集'
        },
        children: [
          {
            path: '/ysqjc/rainstorm/achievements',
            name: 'YsqjcRainstormUser',
            component: () => import('@/views/business/ysqjc/rainstorm/achievements'),
            meta: {
              title: '暴雨图集成果'
            }
          },
          {
            path: '/ysqjc/rainstorm/cxqtq',
            name: 'YsqjcRainstormCxqtq',
            component: () => import('@/views/business/ysqjc/rainstorm/cxqtq'),
            meta: {
              title: '重现期推求'
            }
          }
        ]
      },
      {
        path: '/ysqjc/thematic-map-making',
        name: 'YsqjcThematicMapMaking',
        component: () => import('@/views/business/ysqjc/thematic-map-making'),
        meta: {
          title: '专题图制作'
        }
      },
      {
        path: '/ysqjc/system',
        name: 'YsqjcSystem',
        redirect: '/ysqjc/system/user',
        component: () => import('@/views/essential/shell.vue'),
        meta: {
          title: '系统管理'
        },
        children: [
          {
            path: '/ysqjc/system/user',
            name: 'YsqjcSystemUser',
            component: () => import('@/views/business/ysqjc/system/user'),
            meta: {
              title: '用户管理'
            }
          },
          {
            path: '/ysqjc/system/role',
            name: 'YsqjcSystemRole',
            component: () => import('@/views/business/ysqjc/system/role'),
            meta: {
              title: '角色管理'
            }
          },
          {
            path: '/ysqjc/system/menu',
            name: 'YsqjcSystemMenu',
            component: () => import('@/views/business/ysqjc/system/menu'),
            meta: {
              title: '菜单管理'
            }
          },
          {
            path: '/ysqjc/system/audit',
            name: 'YsqjcSystemAudit',
            component: () => import('@/views/business/ysqjc/system/audit'),
            meta: {
              title: '权限审核管理'
            }
          }
        ]
      },
      {
        path: '/ysqjc/system/statistics',
        name: 'YsqjcSystemStatistics',
        component: () => import('@/views/essential/shell.vue'),
        meta: {
          title: '权限统计'
        },
        children: [
          {
            path: '/ysqjc/system/statistics/menu',
            name: 'YsqjcSystemMenuStatistics',
            component: () => import('@/views/business/ysqjc/system/statistics/menu-statistics'),
            meta: {
              title: '菜单统计'
            }
          },
          {
            path: '/ysqjc/system/statistics/person',
            name: 'YsqjcSystemPersonStatistics',
            component: () => import('@/views/business/ysqjc/system/statistics/person-statistics'),
            meta: {
              title: '人员统计'
            }
          },
          {
            path: '/ysqjc/system/statistics/log',
            name: 'YsqjcSystemLog',
            component: () => import('@/views/business/ysqjc/system/statistics/log'),
            meta: {
              title: '日志管理'
            }
          },
          {
            path: '/ysqjc/system/statistics/online-user',
            name: 'YsqjcSystemOnlineUser',
            component: () => import('@/views/business/ysqjc/system/statistics/online-user'),
            meta: {
              title: '在线用户'
            }
          }
        ]
      },
      {
        path: '/ysqjc/report',
        name: 'YsqjcReport',
        component: () => import('@/views/business/ysqjc/report'),
        meta: {
          title: '报表图表服务'
        }
      }
    ]
  }
]
